<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<#include "../common/common.html">
<title>管理员编辑</title>
</head>
<body>
<article class="page-container">
	<form class="form form-horizontal" id="form"  method="post" enctype="multipart/form-data" >
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>管理员帐号：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="" placeholder="" id="account" name="account">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>管理员姓名：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="" placeholder="" id="name" name="name">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">角色：</label>
		<div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
			<select class="select" id="admin-type" name="type" size="1">
			</select>
			</span> </div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>性别：</label>
		<div id="sex" class="formControls col-xs-8 col-sm-9 skin-minimal">
			<div class="radio-box">
				<input name="gender"  value = "0"  type="radio" id="man"  checked="checked" >
				<label for="sex-1">男</label>
			</div>
			<div class="radio-box">
				<input type="radio"  value="1" id="woman" name="gender">
				<label for="sex-2">女</label>
			</div>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">手机：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" value="" placeholder="" id="phone" name="phone">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">邮箱：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" placeholder="@" name="email" id="email">
		</div>
	</div>
	<!-- Start 上传图片--> 
    <div class="row cl">
		<label class="form-label col-xs-4 col-sm-3" >头像：</label>
		<div class="formControls col-xs-8 col-sm-9">                          	
				<div class="fileupload fileupload-new" data-provides="fileupload">
					<div class="fileupload-new thumbnail" style="width: 200px; height: 150px;">	</div>
					<div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 200px; max-height: 150px; ">
						<img id="picture" src="" alt="" style="max-width: 200px; max-height: 150px; " />
					</div>		
					<div>
						<span class="btn btn-file"><span class="fileupload-new">选择图片</span>
						<span class="fileupload-exists">修改</span>
						<input type="file" class="default" name="headportrait" id="headportrait" /></span>
						<a href="javascript:void();" id="removePic" class="btn fileupload-exists" data-dismiss="fileupload">移除</a>
						<input type="hidden" name="headPortrait" value="">
					</div>
				</div>		
				<span class="label label-important">提示!</span>		
				<span>仅支持png,jpg格式的图片</span>	          
		</div>
	 </div>
	 <!-- End 图片上传-->
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">备注：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea name="description" id = "description" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" onKeyUp="textarealength(this,100)"></textarea>
			<p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
		</div>
	</div>
	</form>
</article>
</body>
<#include "../common/edit.html">
<link rel="stylesheet" type="text/css" href="${ctx}/static/lib/fileupload/bootstrap-fileupload.css" />
<script type="text/javascript" src="${ctx}/static/lib/fileupload/bootstrap-fileupload.js"></script>
 <script type="text/javascript" src="${ctx}/static/js/admin/admin-edit.js"></script>
</html>